#ifndef  RENDERRESSOURCES_HPP
# define RENDERRESSOURCES_HPP

# include <list>
# include <SFML/Graphics.hpp>

namespace Shiny
{
  struct RenderRessources
  {
    std::list<sf::Sprite> sprites;
    sf::View              view;

    void                  Render(sf::RenderTarget& target)
    {
      std::list<sf::Sprite>::iterator current = sprites.begin();
      std::list<sf::Sprite>::iterator end     = sprites.end();

      target.SetView(view);
      for (; current != end ; ++current)
        target.Draw(*current);
    }
  };
}

#endif